package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    //添加菜品或套餐到购物车
    public void add(ShoppingCartDTO shoppingCartDTO);

    //查询购物车中的所有商品
    public List<ShoppingCart> find();

    //删除购物车中一份商品
    public void sub(ShoppingCartDTO shoppingCartDTO);

    //清空购物车
    public void clean();
}
